﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SurveySez.Model;

namespace SurveySez.ViewModel.Editor
{
	public class GameHeaderViewModel
	{
		private EmceeGame _game;

		public GameHeaderViewModel(EmceeGame game)
		{
			_game = game;
		}

		public EmceeGame EmceeGame
		{
			get { return _game; }
		}

		public string Name
		{
			get { return _game.Game.Name; }
		}

		public override bool Equals(object obj)
		{
			if (obj == this)
				return true;
			GameHeaderViewModel that = obj as GameHeaderViewModel;
			if (that == null)
				return false;
			return that._game == this._game;
		}

		public override int GetHashCode()
		{
			return _game.GetHashCode();
		}
	}
}
